{% extends "base-index.html" %}

{% block title %}Questions{% endblock %}

{% block content %}   
     
    <div id="subheader"> 
        <h2>Последни прашања</h2> 
        <div id="tabs"> 
            <a class="youarehere" href="/questions?sort=newest" title="The most recently asked questions">newest</a> 
            <a href="/questions?sort=featured" title="Questions with open bounties">featured</a> 
            <a href="/questions?sort=hot" title="Questions with recent interest and activity">hot</a> 
            <a href="/questions?sort=votes" title="Questions with the most votes">votes</a> 
            <a href="/questions?sort=active" title="Questions that have recent activity">active</a>     
        </div>        
    </div>   
        
    <div id="questions"> 
		{% for q in questions %}    
    <div class="question-summary" id="question-summary-1003092">    
    <div class="statscontainer"> 
        <div class="statsarrow"></div> 
        <div class="stats"> 
            <div class="vote"> 
                <div class="votes"> 
                    <span class="vote-count-post"><strong>{{ q.votes }}</strong></span> 
                    <div class="viewcount">votes</div> 
                </div> 
            </div> 
            <div class="status answered"> 
                <strong>{{ q.answers }}</strong>answer
            </div>        
        </div>        
        <div class="views">{{ q.views }} views</div>        
    </div> 
    <div class="summary"> 
        
        <h3><a href="/questions/{{ q.key.id }}/{{ q.link }}" class="question-hyperlink" rel="canonical">
        {{ q.title }}</a></h3> 
        <div class="excerpt"> 
            {{ q.description }}
            <div class="started"> 
                <div class="user-info">
                	<div class="user-action-time">поставено пред
                    	<span title="{{ q.date_posted|date:"r" }}" class="relativetime">{{ q.posted }}</span>
                    </div>
                    <div class="user-gravatar32">
                    	<a href="/users/{{ q.user.key.id }}/{{ q.user.display_name }}"><img src="http://www.gravatar.com/avatar/86434ecfe94a24302e064b912aec8bfc?s=32&amp;d=identicon&amp;r=PG" height="32" width="32" alt="">
                        </a>
                     </div>
                     <div class="user-details"><a href="/users/{{ q.user.key.id }}/{{ q.user.display_name }}" rel="canonical">{{ q.user.display_name }}</a><br><span class="reputation-score" title="reputation score">1</span>
                     </div>
                 </div> 
            </div>   
            <div class="tags t-jquery t-jquery-plugins"> 
            {% for t in q.tags %}
                <a href="/questions/tagged/{{ t }}" class="post-tag" title="show questions tagged '{{ t }}'" rel="tag">{{ t }}</a></a> 
             {% endfor %}
            </div>  
        </div> 
    </div>    
</div> 
{% endfor %}
</div>
{% endblock %}
